import request from '@/utils/request'
import { commercialApiUrl } from '../config'
//投标交底记录列表
export function recordList (data){
    return request({
        url: commercialApiUrl + '/merchant/disclose-record/query',
        method: 'post',
        data: data
    })
}

export function recordCount (data){
    return request({
        url: commercialApiUrl + '/merchant/disclose-record/findListCount',
        method: 'post',
        data: data
    })
}

//投标交底详细信息回显
export function detailed (id){
    return request({
        url: commercialApiUrl + `/merchant/disclose-record/query/${id}`,
        method: 'get',
    })
}
//投标交底新增基本信息保存
export function recordRow (data){
    return request({
        url: commercialApiUrl + '/merchant/disclose-record',
        method: 'post',
        data: data
    })
}
//投标交底基本信息编辑
export function rewrite (data){
    return request({
		url: commercialApiUrl + '/merchant/disclose-record/update',
        method: 'post',
		data:data
    })
}
// 投标交底记录列表删除列表删除
export function eliminate (params){
    return request({
      url: commercialApiUrl + `/merchant/disclose-record/del`,
      method: 'post',
      params
    })
}